home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 2077 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  981 b 

  1. Path: news.umbc.edu!not-for-mail
  2. From: schlein@umbc.edu (Jonas J. Schlein)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: HELP!  Need command to execute COM/EXE/BAT programs
  5. Date: 18 Jan 1996 18:42:03 -0500
  6. Organization: University of Maryland Baltimore County
  7. Message-ID: <4dmlsb$4s9@umbc10.umbc.edu>
  8. References: <4di4ke$j77@news.cencom.net> <4dm4kl$t93$1@mhafc.production.compuserve.com>
  9. NNTP-Posting-Host: umbc10.umbc.edu
  10. NNTP-Posting-User: schlein
  11.  
  12. Tal Garfinkel  <73400.667@CompuServe.COM> wrote:
  13. |> use the system() function
  14. |>  
  15. |> function prototype is void system(char *) I believe with the char 
  16. |> pointer being a string with the desired command.
  17. |> 
  18. |> it's in <stdlib.h>
  19. |> 
  20. |> now stop asking stupid questions and buy a book or read the FAQ,
  21. |> doesnt anyone know how to RTFM anymore?
  22.  
  23. I believe the correct prototype for system() is:
  24.  
  25. int system (const char *string);
  26. -- 
  27. "If it wasn't for C, we would be using BASI, PASAL, and OBOL."
  28.  
  29. Jonas J. Schlein  (schlein@gl.umbc.edu)
  30.